package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * date:2021/5/12
 * description:
 * Author:Stargazer
 */
@Controller
public class ShowFrontCourseDetailController {

   @RequestMapping("/showFront_courseDetail.do")
    public ModelAndView jumpToFrontCourseDetail(@RequestParam("course_id") Integer course_id){
       ModelAndView modelAndView = new ModelAndView("redirect:/chapter/showChapterFront.do");
       modelAndView.addObject("course_id",course_id);
       return modelAndView ;
   }

}
